//
//  ICShareImageView.m
//  ICome
//
//  Created by ENN on 16/8/30.
//  Copyright © 2016年 iCom. All rights reserved.
//

#import "ICShareImageView.h"
#import "ICHeaderFile.h"

@interface ICShareImageView ()

@property (nonatomic, weak) UIImageView *contentImageV;

@end

@implementation ICShareImageView


- (void)setShareData:(ICShareInstance *)shareData
{
    [super setShareData:shareData];
    
    self.contentImageV.image = shareData.shareObject.imageObject.image;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.contentImageV.frame = CGRectMake(0, self.imageV.bottom+15, 100, 100);
    _contentImageV.centerX   = self.width * 0.5;
    [self bottomViewFrameWithView:_contentImageV];
}

#pragma mark - Getter

- (UIImageView *)contentImageV
{
    if (nil == _contentImageV) {
        UIImageView *contentImageV = [[UIImageView alloc] init];
        contentImageV.contentMode  = UIViewContentModeScaleAspectFit;
        [self addSubview:contentImageV];
        _contentImageV = contentImageV;
    }
    return _contentImageV;
}



@end
